<template>
    <div class="root-container">
        
        <aside class="aside-container">
            <h1>Dashboard</h1>
            <router-link :to="{name: 'sub1'}">sub1</router-link>
            <router-link :to="{name: 'sub2'}">sub2</router-link>
            <router-link to="profile">Profile</router-link>
        </aside>
        <main class="main-container">
            <router-view></router-view>
        </main>
        <footer> footer</footer>
    </div>
</template>

<script setup lang="ts">

</script>

<style lang="scss" scoped>

.root-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f0f0f0;
}

.aside-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    // height: 100%;
    width: 200px;
    background-color: #98e48a;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    // justify-content: center;
    align-items: center;
}

.main-container {
    position: absolute;
    top: 0;
    left: 200px;
    right: 0;
    bottom: 0;
    padding: 20px;
    background-color: aquamarine;
}
</style>